Skip to the content.

CocoGL

CocoGL is an OpenGL ES 1.0/1.1 3D graphics software emulator for Windows and Linux. The emulator accelerates 3D rasterization using template specialization.

This repository contains the complete implementation with a demo program testing various features of OpenGL ES.

The library documentation is available at: https://gtcasl.github.io/cocogl/

Dependencies

CocoGL requires C++17 compiler and above.

Other dependencies include:

Default Build Instructions (Ubuntu Trusty)

GCC 7.1 Install:

$ sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-7 g++-7
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 60 --slave /usr/bin/g++ g++ /usr/bin/g++-7

Xlib 11 Install:

$ sudo apt install libx11-dev

SDL 2.0 Install:

$ sudo apt-get install libsdl2-dev

To use CocoGL you must clone the repository and build the sources

$ git clone https://github.com/gtcasl/cocogl.git
$ cd cocogl
$ build.sh all
$ source env.sh   

MD2 Viewer

$ cd md2viewer
$ ./md2viewer -?
$ ./md2viewer -b models/quake.tga models/tekkaman.md2

Screenshot2

Demo App

$ cd demo
$ ./demo -?
$ ./demo -t7

Screenshot1 Screenshot2